/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package lhs;

/**
 *
 * @author Degon
 */
public class Service {
    private String type;
    private int cost;
    private int tonnes;
    private int total;
    
    public Service(String type, int tonnes, int cost)
    {
        this.cost = cost;
        this.type = type;
        total = 0;
    }
    
    public String getType()
    {
        return type;
    }
    
    private void calculateTotalCost()
    {
        total = cost * tonnes;
    }
    
    public int getTotalCost()
    {
        return total;
    }
}
